package com.paas.form.entity;

import com.paas.common.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("form_model")
@ApiModel(value="FormModel对象", description="")
public class FormModelEntity extends BaseModel {
	
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value = "主键")
	@TableId
	private String id;

	@ApiModelProperty(value = "模型名称")
	@TableField("mode_name")
	private String modeName;

	@ApiModelProperty(value = "模型简介")
	@TableField("mode_description")
	private String modeDescription;

	@ApiModelProperty(value = "数据源id")
	@TableField("database_id")
	private String databaseId;

	@ApiModelProperty(value = "sql语句")
	@TableField("excel_sql")
	private String excelSql;

	@ApiModelProperty(value = "组织id")
	@TableField("org_id")
	private String orgId;

	@ApiModelProperty(value = "修改人")
	@TableField("modify_id")
	private String modifyId;

	@ApiModelProperty(value = "数据状态")
	@TableField("status")
	private String status;

	@ApiModelProperty(value = "应用id")
	@TableField("app_id")
	private String appId;

	@ApiModelProperty(value = "创建人")
	@TableField(exist = false)
	private String createName;

	@ApiModelProperty(value = "数据源名称")
	@TableField(exist = false)
	private String databaseName;

}